//
//  PSXiangQingView.m
//  KCFurProject
//
//  Created by ios程序员 on 15/11/7.
//  Copyright (c) 2015年 ios程序员. All rights reserved.
//

#import "PSXiangQingView.h"

@implementation PSXiangQingView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.XQimageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width , self.frame.size.height - 80)];
        self.XQimageView.backgroundColor = [UIColor redColor];
        [self.XQimageView setImage:[UIImage imageNamed:@"kc"]];
//        [self addSubview:self.XQimageView];
        
        self.jianJjieLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, self.frame.size.height - 75, self.frame.size.width - 80, 30)];
//        self.jianJjieLabel.backgroundColor = [UIColor purpleColor];
        self.jiaGeLabel.numberOfLines = 0;
        self.jianJjieLabel.font = [UIFont systemFontOfSize:11];

        self.jianJjieLabel.text = @"地方的法尔好的机会呢简介简介简介简介简介简介简介";
        [self addSubview:self.jianJjieLabel];
        
        self.jiaGeLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, self.frame.size.height- 40, 100, 20)];
        [self addSubview:self.jiaGeLabel];
        self.jiaGeLabel.text = @"100.00";
        self.jiaGeLabel.textColor = [UIColor redColor];
        self.jiaGeLabel.font = [UIFont systemFontOfSize:11];
//        self.jiaGeLabel.backgroundColor = [UIColor blueColor];
        
        self.moneyLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, self.frame.size.height - 20,50, 20)];
//        self.moneyLabel.backgroundColor = [UIColor grayColor];
        self.moneyLabel.text = @"哈尔滨";
        self.moneyLabel.font = [UIFont systemFontOfSize:11];


        [self addSubview:self.moneyLabel];
        
        self.baoYouLabel = [[UILabel alloc] initWithFrame:CGRectMake(150, self.frame.size.height - 20, 50, 20)];
//        self.baoYouLabel.backgroundColor = [UIColor blackColor];
        self.baoYouLabel.text = @"包邮";
        self.baoYouLabel.font = [UIFont systemFontOfSize:12];
        self.baoYouLabel.textColor = [UIColor grayColor];
        [self addSubview:self.baoYouLabel];
        
        self.fenXiangButton = [UIButton buttonWithType:UIButtonTypeCustom];
        self.fenXiangButton.frame = CGRectMake(self.frame.size.width - 70, self.frame.size.height - 70, 50, 30);
        [self.fenXiangButton setImage:[UIImage imageNamed:@"fengx"] forState:UIControlStateNormal];
        [self addSubview:self.fenXiangButton];
        
        self.shouCangButton = [UIButton buttonWithType:UIButtonTypeCustom];
        self.shouCangButton.frame = CGRectMake(self.frame.size.width - 70, self.frame.size.height - 30, 50, 30);
        [self.shouCangButton setImage:[UIImage imageNamed:@"sc"] forState:UIControlStateNormal];
        [self addSubview:self.shouCangButton];
        
    }
    return self;
}

@end
